<?php
/*
 * @Descripttion: 队列功能测试脚本
 * @version: 
 * @Author: ewgof
 * @Date: 2021-04-28 15:09:45
 * @LastEditors: ewgof
 * @LastEditTime: 2022-05-23 10:57:49
 */
namespace queue;

// require_once './Producer.php';
use queue\Producer;

class Test
{
    public function input()
    {
        Producer::push([\queue\Test::class, 'pullHandle'], ['user_id' => 123, 'order_id' => 11, 'num' => 12], 3);
    }


    public function pullHandle($data)
    {
        echo '<pre />';
        print_r($data);
        echo '<pre />';
        // exit;
    }
}
(new Test())->input();
